#!/bin/bash
#
#
#
SIGN="python3 /etc/LEDSign/daksign.py --serial /dev/ttyUSB0"
FRAMES=()



#
# Reset the display and set the clock
#
$SIGN v15reset --clear-memory --yes
$SIGN v15settime



# Blank for a while until reset completely finishes
FRAMES+=(--frame 'text@10:|')


#
# Display the time & date for 10 seconds
#
FRAMES+=(--frame 'text@10:[fixed]{time}|[normal]{date}')


#
# Show some capabilities
#
FRAMES+=(--frame 'text@1:[scroll-left]Scroll Text Left|[scroll-right]Scroll Text Right')

FRAMES+=(--frame 'banner:[scroll-left]Big Fonts Scroll Left')
FRAMES+=(--frame 'banner:[scroll-right]Now Scroll Right')

FRAMES+=(--frame 'banner:[red]Red Text')
FRAMES+=(--frame 'banner:[green]Green Text')
FRAMES+=(--frame 'banner:[amber]Amber Text')

FRAMES+=(--frame 'text@3:[fixed]Fixed-width Font|[normal]Proportional Font')

FRAMES+=(--frame 'text:[normal,red]The NerdWorld Organisation|[normal,green]NerdWorld.org')
FRAMES+=(--frame 'text:[normal,green]NerdWorld.org|[normal,amber]The NerdWorld Organisation')
FRAMES+=(--frame 'text:[normal,amber]The NerdWorld Organisation|[normal,green]NerdWorld.org')
FRAMES+=(--frame 'text:[normal,red]The NerdWorld Organisation|[normal,green]NerdWorld.org')
FRAMES+=(--frame 'text:[normal,green]NerdWorld.org|[normal,amber]The NerdWorld Organisation')
FRAMES+=(--frame 'text:[normal,amber]The NerdWorld Organisation|[normal,green]NerdWorld.org')

FRAMES+=(--frame 'banner:[red]The NerdWorld Organisation')





#
# Send everything to the sign as one message (it loops)
#
$SIGN v15message --name 'DEFAULT\NERD' "${FRAMES[@]}"








#





